import fetch from '@/utils/fetch'

const GroupApi = {
    getPageList (params) {
        return fetch({
            url: '/api/spec/group/page',
            method: 'get',
            params: params
        })
    },
    init (params) {
        return fetch({
            url: '/api/spec/group/list',
            method: 'get',
            params: params
        })
    },
    add (params) {
        return fetch({
            url: '/api/spec/group/add',
            method: 'post',
            data: params
        })
    },
    update (id, params) {
        return fetch({
            url: '/api/spec/group/' + id,
            method: 'put',
            data: params
        })
    },
    //   del (params) {
    //     return fetch({
    //       url: '/api/spec/group/' + params,
    //       method: 'delete'
    //     })
    //   }
    del (params) {
        return fetch({
            url: '/api/spec/group',
            method: 'post',
            data: params
        })
    }
}
export default GroupApi
